[INFO] cloning repository https://github.com/juliosouzam/learn-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/juliosouzam/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3b4e5fc81641fc27af39d825f83d53ea3af7e6fa
[INFO] building juliosouzam/learn-rust against master#a29f341a8ac4e9325a5e37027b4215f50a76d06f for pr-101929
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/juliosouzam/learn-rust on toolchain a29f341a8ac4e9325a5e37027b4215f50a76d06f
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/juliosouzam/learn-rust
[INFO] finished tweaking git repo https://github.com/juliosouzam/learn-rust
[INFO] tweaked toml for git repo https://github.com/juliosouzam/learn-rust written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/juliosouzam/learn-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e92e462e59ac3446a933540fd361ddeb5362c86f92d432d6a560a917a465022e" "/opt/rustwide/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8dd3d2fbbd7b4add4d4a0aa6edfb7d5538d4b3f21839591ca4e2b93f8bb9a84c
[INFO] running `Command { std: "docker" "start" "-a" "8dd3d2fbbd7b4add4d4a0aa6edfb7d5538d4b3f21839591ca4e2b93f8bb9a84c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8dd3d2fbbd7b4add4d4a0aa6edfb7d5538d4b3f21839591ca4e2b93f8bb9a84c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8dd3d2fbbd7b4add4d4a0aa6edfb7d5538d4b3f21839591ca4e2b93f8bb9a84c", kill_on_drop: false }`
[INFO] [stdout] 8dd3d2fbbd7b4add4d4a0aa6edfb7d5538d4b3f21839591ca4e2b93f8bb9a84c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e92e462e59ac3446a933540fd361ddeb5362c86f92d432d6a560a917a465022e" "/opt/rustwide/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0235004daee5d28a8e86a63d993a3695d05d33a35652ea5030e80b0ffbcacd5a
[INFO] running `Command { std: "docker" "start" "-a" "0235004daee5d28a8e86a63d993a3695d05d33a35652ea5030e80b0ffbcacd5a", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling libc v0.2.108
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling syn v1.0.84
[INFO] [stderr]    Compiling unicode-segmentation v1.8.0
[INFO] [stderr]    Compiling unicode-width v0.1.9
[INFO] [stderr]    Compiling serde v1.0.130
[INFO] [stderr]    Compiling vec_map v0.8.2
[INFO] [stderr]    Compiling strsim v0.8.0
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling ansi_term v0.12.1
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling getrandom v0.2.3
[INFO] [stderr]    Compiling clap v2.34.0
[INFO] [stderr]    Compiling quote v1.0.14
[INFO] [stderr]    Compiling chrono v0.4.19
[INFO] [stderr]    Compiling uuid v0.8.2
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling structopt-derive v0.4.18
[INFO] [stderr]    Compiling structopt v0.3.25
[INFO] [stderr]    Compiling thiserror v1.0.30
[INFO] [stderr]    Compiling tasks v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: enum `Color` is never used
[INFO] [stdout]  --> src/bin/docs.rs:2:6
[INFO] [stdout]   |
[INFO] [stdout] 2 | enum Color {
[INFO] [stdout]   |      ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Mail` is never constructed
[INFO] [stdout]  --> src/bin/docs.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | struct Mail {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add` is never used
[INFO] [stdout]   --> src/bin/docs.rs:14:4
[INFO] [stdout]    |
[INFO] [stdout] 14 | fn add(a: i32, b: i32) -> i32 {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_is_some`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:3:7
[INFO] [stdout]   |
[INFO] [stdout] 3 |   let a_is_some = a.is_some();
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_is_some`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_is_none`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:4:7
[INFO] [stdout]   |
[INFO] [stdout] 4 |   let a_is_none = a.is_none();
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_is_none`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_mapped`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 |   let a_mapped = a.map(|num| num + 1);
[INFO] [stdout]   |       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_mapped`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_filtered`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 |   let a_filtered = a.filter(|num| num == &1);
[INFO] [stdout]   |       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_filtered`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_or_else`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 |   let a_or_else = a.or_else(|| Some(5));
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_or_else`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unwrapped`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 |   let unwrapped = a.unwrap_or_else(|| 0);
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: function `hi` is private
[INFO] [stdout]   --> src/bin/modules.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 |   greet::hi();
[INFO] [stdout]    |          ^^ private function
[INFO] [stdout]    |
[INFO] [stdout] note: the function `hi` is defined here
[INFO] [stdout]   --> src/bin/modules.rs:6:3
[INFO] [stdout]    |
[INFO] [stdout] 6  |   fn hi() {
[INFO] [stdout]    |   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: function `add` is private
[INFO] [stdout]   --> src/bin/modules.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |   math::add(3, 6);
[INFO] [stdout]    |         ^^^ private function
[INFO] [stdout]    |
[INFO] [stdout] note: the function `add` is defined here
[INFO] [stdout]   --> src/bin/modules.rs:16:3
[INFO] [stdout]    |
[INFO] [stdout] 16 |   fn add(a: i32, b: i32) -> i32 {
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/bin/modules.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `word_length`
[INFO] [stdout]   --> src/bin/map-combinator.rs:17:7
[INFO] [stdout]    |
[INFO] [stdout] 17 |   let word_length = maybe_word().map(|w| w.len()).map(|l| l * 2);
[INFO] [stdout]    |       ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_length`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/bin/modules.rs:4:7
[INFO] [stdout]   |
[INFO] [stdout] 4 |   use std::collections::HashMap;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `user_id` and `name` are never read
[INFO] [stdout]  --> src/bin/a21.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User {
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |   user_id: i32,
[INFO] [stdout]   |   ^^^^^^^
[INFO] [stdout] 4 |   name: String,
[INFO] [stdout]   |   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `maybe_num` is never used
[INFO] [stdout]  --> src/bin/map-combinator.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn maybe_num() -> Option<i32> {
[INFO] [stdout]   |    ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0603`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tasks` due to 3 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "0235004daee5d28a8e86a63d993a3695d05d33a35652ea5030e80b0ffbcacd5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0235004daee5d28a8e86a63d993a3695d05d33a35652ea5030e80b0ffbcacd5a", kill_on_drop: false }`
[INFO] [stdout] 0235004daee5d28a8e86a63d993a3695d05d33a35652ea5030e80b0ffbcacd5a
